import { createStore } from 'vuex'

export default createStore({
  state: {
    userInfo:{
      userId:null
    },
    baseConfig:{
      title:'垃圾词典'
    },
    userPermissionArray:[],
    userRoleArray:[]
  },
  getters: {
  },
  mutations: {
    updateUserInfo(state, payload) {
      state.userInfo = payload
      state.userPermissionArray=payload.permissionArray
      state.userRoleArray=payload.roleArray
    },
  },
  actions: {
  },
  modules: {
  }
})
